﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="AfterRegister.aspx.cs" Inherits="TimKen.Web.User.AfterRegister" %>

<%@ Register Src="../UserControls/UserCenter.ascx" TagName="UserCenter" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:UserCenter ID="ucUserCenter" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form runat="server" >
<script  type="text/javascript">
    function checkmail() {
        var email = document.getElementById("<%=txtEmail.ClientID%>").value;
        if (email == "") {
            alert('<%=GetLangString("x_EmailNotAllowBlank")%>');
            return false;
        }
        if (!checkEmail(document.getElementById("<%=txtEmail.ClientID%>").value)) {
            alert('<%=GetLangString("x_EmailNotValided")%>');
            return false;
        }

        return true;
    }

    function checkEmail(email) {
        return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email);
    }
</script>
<div class="rtitle">
<asp:Label ID="txtTitle" runat="server" Text="Label"></asp:Label>
</div>
<%--<div class="msglist">
<asp:Label ID="txtSubTitle" runat="server" Text="Label"></asp:Label>
</div>--%>

<div class="error">
<br /><asp:Label ID="txtMessage" runat="server" Text="Label"></asp:Label><br />
   <asp:Panel ID="panelResendEmail" runat="server" Visible="false">
   <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox> 
   <asp:Button ID="btnSendEmailCheck" runat="server"   OnClientClick="return checkmail()" onclick="btnSendEmailCheck_Click"   />
   </asp:Panel>
</div>
</form>
</asp:Content>

